import type { routerItem } from "@/common/interface";
import wrapper from "@/layout/wrapper.vue";
import home from "@/views/index/home.vue";

import SheepIndex from "@/views/Produce/SheepIndex.vue";//羊场首页
import ShiftCreate from "@/views/Produce/ShiftCreate.vue";//羊只转舍
import PregnantList from "@/views/Produce/PregnantList.vue";//种母妊检
import BreedingList from "@/views/Produce/BreedingList.vue";//配种
import HistoryList from "@/views/Produce/HistoryList.vue";//种母历史记录
import Delivery from "@/views/Produce/Delivery.vue";//种母历史记录
import WeaningList from "@/views/Produce/WeaningList.vue";//种母历史记录
import LambWeaning from "@/views/Produce/LambWeaning.vue";//种母历史记录


import Subcultivation from "@/views/Produce/Subcultivation.vue";//后裔转钟
import ShowSubcultivation from "@/views/Produce/ShowSubcultivation.vue";//后裔转钟--新增
import SheepFarm from "@/views/Organization/SheepFarm.vue";
import Cottage from "@/views/Organization/Cottage.vue";
import ShowSheepMom from "@/views/SheepMale/ShowSheepMom.vue";
import ShowSheepFater from "@/views/SheepMale/ShowSheepFater.vue";
import ShowSheepSon from "@/views/SheepMale/ShowSheepSon.vue";
import EarTagList from "@/views/EarTag/EarTagList.vue";
import SheepDetails from "@/views/EarTag/SheepDetails.vue"
import MarkList from "@/views/EarTag/MarkList.vue";
import SheepFile from "@/views/EarTag/SheepFile.vue";
import BodyMeasureList from "@/views/Breeding/BodyMeasureList.vue";
import ConditionMeasureList from "@/views/Breeding/ConditionMeasureList.vue";
import SheepWeighList from "@/views/Breeding/SheepWeighList.vue";
import RoleShow from "@/views/Jurisdiction/RoleShow.vue"  //角色显示
import JurisdictionAllocation from "@/views/Jurisdiction/JurisdictionAllocation.vue"  //权限分配
import StaffShow from "@/views/Jurisdiction/StaffShow.vue"  //人员显示
import StaffAdd from "@/views/Jurisdiction/StaffAdd.vue"  //人员增加
import StaffDetails from "@/views/Jurisdiction/StaffDetails.vue"  //人员详情
import EntityPurchase from "@/views/Purchase/EntityPurchase.vue"  //个体采购
import Client from "@/views/Purchase/Client.vue"  //客户信息
import AddClient from "@/views/Purchase/AddClient.vue"  //客户信息添加
import ShowClient from "@/views/Purchase/ShowClient.vue"  //客户信息查看
import Supplier from "@/views/Purchase/Supplier.vue"  //供应商信息
import SupplierAdd from "@/views/Purchase/SupplierAdd.vue"  //供应商信息添加
import ShowSupplier from "@/views/Purchase/ShowSupplier.vue"  //供应商信息添加
import EntityMarket from "@/views/Purchase/EntityMarket.vue"  //个体销售
import StaffUpdate from '@/views/Jurisdiction/StaffUpdate.vue'  //人员修改
import EnterpriceAdd from '@/views/Organization/EnterpriceAdd.vue'  //单位
import DepartmentView from '@/views/Organization/DepartmentView.vue'  //部门添加
import DepartmentShow from '@/views/Organization/DepartmentShow.vue'  //部门显示
import PersonageInfo from '@/views/Personage/PersonageInfo.vue' //个人信息
import SecuritySettings from '@/views/Personage/SecuritySettings.vue' //安全设置
import DeathManageList from "@/views/SheepOnly/DeathManageList.vue";//死亡管理
import OustManageList from "@/views/SheepOnly/OustManageList.vue";//淘汰管理
const staticRoutes: routerItem[] = [
  {
    path: "/SheepIndex",
    name: "羊场首页",
    lang: "menu.t1",
    component: SheepIndex,
    children: [],
    meta: {
      icon: "custom-icon-Home",
    },
  },
  {
    path: "/Personage",
    name: "个人设置",
    lang: "personage.t1",
    component: wrapper,
    redirect: "/Personage/PersonageInfo",
    meta: {
      icon: "custom-icon-Bag1",
    },
    children: [
      {
        path: "/Personage/PersonageInfo",
        name: "个人信息",
        lang: "personage.t2",
        children: [],
        component: PersonageInfo
      },
      {
        path: "/Personage/SecuritySettings",
        name: "安全设置",
        lang: "personage.t3",
        children: [],
        component: SecuritySettings
      },
    ]
  },
  {
    path: "/Jurisdiction",
    name: "权限管理",
    lang: "menuRBAC.t1",
    component: wrapper,
    redirect: "/Jurisdiction/RoleShow",
    meta: {
      icon: "custom-icon-Bag1",
    },
    children: [
      {
        path: "/Jurisdiction/RoleShow",
        name: "角色设置",
        lang: "menuRBAC.t2",
        children: [],
        component: RoleShow
      },
      {
        path: "/Jurisdiction/JurisdictionAllocation",
        name: "权限分配",
        lang: "menuRBAC.t3",
        children: [],
        component: JurisdictionAllocation
      },
      {
        path: "/Jurisdiction/StaffAdd",
        name: "人员管理",
        lang: "menuRBAC.t4",
        component: wrapper,
        redirect: "/Jurisdiction/StaffAdd",
        meta: {
          icon: "custom-icon-Bag1",
        },
        children: [
          {
            path: "/Jurisdiction/StaffAdd",
            name: "人员增加",
            lang: "menuRBAC.t5",
            children: [],
            component: StaffAdd
          },
          {
            path: "/Jurisdiction/StaffShow",
            name: "人员显示",
            lang: "menuRBAC.t6",
            children: [],
            component: StaffShow
          },
          {
            path: "/Jurisdiction/StaffDetails",
            name: "人员查看",
            lang: "menuRBAC.t7",
            children: [],
            component: StaffDetails
          },
          {
            path: "/Jurisdiction/StaffUpdate",
            name: "人员编辑",
            lang: "menuRBAC.t8",
            children: [],
            component: StaffUpdate
          },
        ],
      },
    ],
  },
  {
    path: "/",
    name: "组织管理",
    lang: "menuStar.t1",
    component: wrapper,
    meta: {
      icon: "custom-icon-Bag1",
    },
    children: [
      {
        path: "/Organization/EnterpriceAdd",
        name: "单位设置",
        lang: "menuStar.t4",
        children: [],
        component: EnterpriceAdd,
      },
      {
        path: "/Organization/DepartmentView",
        name: "部门设置",
        lang: "menuStar.t5",
        component: wrapper,
        meta: {
          icon: "custom-icon-Bag1",
        },
        children: [
          {
            path: "/Organization/DepartmentView",
            name: "部门管理",
            lang: "menuStar.t6",
            children: [],
            component: DepartmentView,
          },
          {
            path: "/Organization/DepartmentShow",
            name: "部门显示",
            lang: "menuStar.t7",
            children: [],
            component: DepartmentShow,
          },
        ],
      },
      {
        path: "/Organization/SheepFarm",
        name: "羊场设置",
        lang: "menuStar.t2",
        children: [],
        component: SheepFarm,
      },
      {
        path: "/Organization/Cottage",
        name: "栋舍管理",
        lang: "menuStar.t3",
        children: [],
        component: Cottage,
      },

    ],
  },
  {
    path: "/SheepMale",
    name: "期初管理",
    lang: "sheepmale.t2",
    component: wrapper,
    redirect: "/SheepMale/ShowSheepFater",
    meta: {
      icon: "custom-icon-Bag1",
    },
    children: [
      {
        path: "/SheepMale/SheepMaleFater",
        name: "种公期初",
        lang: "sheepmale.t3",
        children: [],
        component: ShowSheepFater,
      },
      {
        path: "/SheepMale/SheepMaleMom",
        name: "种母期初",
        lang: "sheepmale.t4",
        children: [],
        component: ShowSheepMom,
      },
      {
        path: "/SheepMale/SheepMaleSon",
        name: "后裔期初",
        lang: "sheepmale.t5",
        children: [],
        component: ShowSheepSon,
      },
    ],
  },
  {
    path: "/EarTag",
    name: "耳标管理",
    lang: "menu1.t1",
    component: wrapper,
    meta: {
      icon: "custom-icon-Bag1",
    },
    children: [
      {
        path: "/EarTag/EarTagList",
        name: "产羔耳标管理-新增",
        lang: "menu1.t2",
        component: EarTagList,
        children: [],
      },
      {
        path: "/EarTag/MarkList",
        name: "羊只戴标",
        lang: "menu1.t3",
        children: [],
        component: MarkList,
      },
    ],
  },
  {
    path: "/ShiftCreate",
    name: "生产管理",
    lang: "menu.t2",
    component: wrapper,
    redirect: "/Produce/ShiftCreate",
    meta: {
      icon: "custom-icon-Bag1",
    },
    children: [
      {
        path: "/EarTag/SheepFile",
        name: "羊只档案",
        lang: "menu2.t1",
        meta: {
          icon: "custom-icon-Bag1",
        },
        children: [],
        component: SheepFile,
      },
      {
        path: "/EarTag/SheepDetails",
        name: "",
        lang: "menu2.t2",
        children: [],
        component: SheepDetails,
      },

      {
        path: "/Produce/ShiftCreate",
        name: "羊只转舍",
        lang: "menu.t3",
        children: [],
        component: ShiftCreate,
      },
      {
        path: "/Produce/BreedingList",
        name: "种母配种",
        lang: "menu.t4",
        children: [],
        component: BreedingList,
      },
      {
        path: "/Produce/PregnantList",
        name: "种母妊检",
        lang: "menu.t6",
        children: [],
        component: PregnantList,
      },
      {
        path: "/Produce/Delivery",
        name: "种母分娩",
        lang: "menu.t7",
        children: [],
        component: Delivery,
      },
      {
        path: "/Produce/WeaningList",
        name: "种母断奶",
        lang: "menu.t8",
        children: [],
        component: WeaningList,
      },
      {
        path: "/Produce/HistoryList",
        name: "种母历史记录",
        lang: "menu.t5",
        children: [],
        component: HistoryList,
      },
      {
        path: "/Produce/LambWeaning",
        name: "羔羊断奶",
        lang: "menu.t9",
        children: [],
        component: LambWeaning,
      },
      {
        path: "/Produce/Subcultivation",
        name: "后裔转钟",
        lang: "menu.tsub",
        children: [],
        component: Subcultivation,
      },
      {
        path: "/Produce/ShowSubcultivation",
        name: "后裔转钟-新增",
        lang: "menu.taddsub",
        children: [],
        component: ShowSubcultivation,
      },
    ],
  },
  {
    path: "/SheepWeighList",
    name: "育种管理",
    lang: "breed.t1",
    component: wrapper,
    meta: {
      icon: "custom-icon-Bag1",
    },
    children: [
      {
        path: "/Breeding/SheepWeighList",
        name: "羊只称重",
        lang: "breed.t2",
        component: SheepWeighList,
        meta: {
          icon: "custom-icon-Bag1",
        },
        children: []
      },
      {
        path: "/Breeding/BodyMeasureList",
        name: "体尺测定",
        lang: "breed.t3",
        component: BodyMeasureList,
        meta: {
          icon: "custom-icon-Bag1",
        },
        children: []
      },
      {
        path: "/Breeding/ConditionMeasureList",
        name: "品相测定",
        lang: "breed.t4",
        component: ConditionMeasureList,
        meta: {
          icon: "custom-icon-Bag1",
        },
        children: []
      },
    ],
  },

  {
    path: "/DeathManageList",
    name: "羊只管理",
    lang: "sheeponly.t1",
    component: wrapper,
    meta: {
      icon: "custom-icon-Bag1",
    },
    children: [
      {
        path: "/SheepOnly/DeathManageList",
        name: "死亡管理",
        lang: "sheeponly.t2",
        component: DeathManageList,
        meta: {
          icon: "custom-icon-Bag1",
        },
        children: []
      },
      {
        path: "/SheepOnly/OustManageList",
        name: "淘汰管理",
        lang: "sheeponly.t3",
        component: OustManageList,
        meta: {
          icon: "custom-icon-Bag1",
        },
        children: []
      },
    ],
  },
  {
    path: "/Purchase",
    name: "采购销售",
    lang: "PurchaseMenu.t1",
    component: wrapper,
    meta: {
      icon: "custom-icon-Bag1",
    },
    children: [
      {
        path: "/Purchase/EntityPurchase",
        name: "个体采购",
        lang: "PurchaseMenu.t2",
        children: [],
        component: EntityPurchase,
      },
      {
        path: "/Purchase/EntityMarket",
        name: "个体销售",
        lang: "PurchaseMenu.t3",
        children: [],
        component: EntityMarket,
      },
      {
        path: "/views/Purchase",
        name: "供应商管理",
        lang: "PurchaseMenu.t4",
        children: [
          {
            path: "/Purchase/Supplier",
            name: "供应商列表",
            lang: "PurchaseMenu.t8",
            children: [],
            component: Supplier,
          },
          {
            path: "/Purchase/SupplierAdd",
            name: "供应商-新增",
            lang: "PurchaseMenu.t6",
            children: [],
            component: SupplierAdd,
          },
          {
            path: "/Purchase/ShowSupplier",
            name: "供应商-查询",
            children: [],
            component: ShowSupplier,
          },
        ],
        component: wrapper,
      },
      {
        path: "/Client",
        name: "客户管理",
        lang: "PurchaseMenu.t5",
        children: [
          {
            path: "/Purchase/Client",
            name: "客户列表",
            lang: "PurchaseMenu.t9",
            children: [],
            component: Client,
          },
          {
            path: "/Purchase/AddClient",
            name: "客户管理-新增",
            lang: "PurchaseMenu.t7",
            children: [],
            component: AddClient,
          },
          {
            path: "/Purchase/ShowClient",
            name: "客户管理-查看",
            lang: "PurchaseMenu.t10",
            children: [],
            component: ShowClient,
          },
        ],
        component: wrapper,
      },





    ],
  },


]
export default staticRoutes;
